<?php
	html_start();

	$servdir = '../services/';
        $dirarr = scandir($servdir);
        foreach( $dirarr AS $file ) {
                if ( substr($file, 0, 1) != "." && is_dir($servdir.$file)) {
                        $settings = parse_ini_file($servdir.$file.'/settings');
                        echo '<table style="float: left; text-align: center; margin-bottom: 30px; width: 183px;">';
                        echo ' <tr><td style="height: 80px">';
                        echo '  <a href="main.php?s='.$file.'"><img src="getf.php?s='.$file.'&amp;f='.$settings['icon'].'" alt="'.$settings['name'].'"></td></tr>';
                        echo ' <tr><td>'.$settings['name'].'</a>';
                        echo ' </td></tr>';
                        echo '</table>';
                }
        }

	html_end();
?>
